package com.yl.users.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.users.entity.SysCompanyPermissions
import com.yl.users.pojo.dto.CompanyPermissionsDto
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
import java.security.Permission

@Mapper
interface SysCompanyPermissionsMapper : BaseMapper<SysCompanyPermissions> {

    /**
     * 查询公司有的系统权限id列表
     */
    fun selectPermIdByCompany(companyId: Long):List<Long>




    /**
     * 删除权限
     */
    fun deleteCompanyPermissions(@Param("companyId")companyId:Long,@Param("permIds")permIds : List<Long>)
}